package gdut.imis.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @Description 星期枚举类
 * @Author JiaFu
 * @Date 2023/4/19 8:10
 */
public enum WeekDayEnum {
    MON_DAY(0, "星期一"),
    TUES_DAY(1, "星期二"),
    WEDNES_DAY(2, "星期三"),
    THURS_DAY(3, "星期四"),
    FRI_DAY(4, "星期五"),
    SATUR_DAY(5, "星期六"),
    SUN_DAY(6, "星期日");
    @EnumValue
    private final int type;
    @JsonValue
    private final String value;

    WeekDayEnum(int type, String value) {
        this.type = type;
        this.value = value;
    }

    public int getType() {
        return type;
    }

    public String getValue() {
        return value;
    }
}
